<?php
$tdatashipment_modes=array();
	$tdatashipment_modes[".NumberOfChars"]=80; 
	$tdatashipment_modes[".ShortName"]="shipment_modes";
	$tdatashipment_modes[".OwnerID"]="";
	$tdatashipment_modes[".OriginalTable"]="shipment_modes";


	
//	field labels
$fieldLabelsshipment_modes = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsshipment_modes["English"]=array();
	$fieldToolTipsshipment_modes["English"]=array();
	$fieldLabelsshipment_modes["English"]["id"] = "Id";
	$fieldToolTipsshipment_modes["English"]["id"] = "";
	$fieldLabelsshipment_modes["English"]["name"] = "Name";
	$fieldToolTipsshipment_modes["English"]["name"] = "";
	if (count($fieldToolTipsshipment_modes["English"])){
		$tdatashipment_modes[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsshipment_modes["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsshipment_modes["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsshipment_modes["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsshipment_modes["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsshipment_modes["Chinese (Hong Kong S.A.R.)"]["name"] = "Name";
	$fieldToolTipsshipment_modes["Chinese (Hong Kong S.A.R.)"]["name"] = "";
	if (count($fieldToolTipsshipment_modes["Chinese (Hong Kong S.A.R.)"])){
		$tdatashipment_modes[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsshipment_modes["Chinese (Taiwan)"]=array();
	$fieldToolTipsshipment_modes["Chinese (Taiwan)"]=array();
	$fieldLabelsshipment_modes["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsshipment_modes["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsshipment_modes["Chinese (Taiwan)"]["name"] = "Name";
	$fieldToolTipsshipment_modes["Chinese (Taiwan)"]["name"] = "";
	if (count($fieldToolTipsshipment_modes["Chinese (Taiwan)"])){
		$tdatashipment_modes[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsshipment_modes["French"]=array();
	$fieldToolTipsshipment_modes["French"]=array();
	$fieldLabelsshipment_modes["French"]["id"] = "Id";
	$fieldToolTipsshipment_modes["French"]["id"] = "";
	$fieldLabelsshipment_modes["French"]["name"] = "Name";
	$fieldToolTipsshipment_modes["French"]["name"] = "";
	if (count($fieldToolTipsshipment_modes["French"])){
		$tdatashipment_modes[".isUseToolTips"]=true;
	}
}


	
	$tdatashipment_modes[".NCSearch"]=true;

	

$tdatashipment_modes[".shortTableName"] = "shipment_modes";
$tdatashipment_modes[".nSecOptions"] = 0;
$tdatashipment_modes[".recsPerRowList"] = 1;	
$tdatashipment_modes[".tableGroupBy"] = "0";
$tdatashipment_modes[".mainTableOwnerID"] = "";
$tdatashipment_modes[".moveNext"] = 1;




$tdatashipment_modes[".showAddInPopup"] = false;

$tdatashipment_modes[".showEditInPopup"] = false;

$tdatashipment_modes[".showViewInPopup"] = false;


$tdatashipment_modes[".fieldsForRegister"] = array();

$tdatashipment_modes[".listAjax"] = true;

	$tdatashipment_modes[".audit"] = false;

	$tdatashipment_modes[".locking"] = false;
	
$tdatashipment_modes[".listIcons"] = true;
$tdatashipment_modes[".edit"] = true;
$tdatashipment_modes[".inlineEdit"] = true;
$tdatashipment_modes[".view"] = true;

$tdatashipment_modes[".exportTo"] = true;

$tdatashipment_modes[".printFriendly"] = true;

$tdatashipment_modes[".delete"] = true;

$tdatashipment_modes[".showSimpleSearchOptions"] = true;

$tdatashipment_modes[".showSearchPanel"] = true;


$tdatashipment_modes[".isUseAjaxSuggest"] = true;

$tdatashipment_modes[".rowHighlite"] = true;


// button handlers file names

$tdatashipment_modes[".addPageEvents"] = false;

$tdatashipment_modes[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatashipment_modes[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatashipment_modes[".isUseTimeForSearch"] = false;

$tdatashipment_modes[".isUseiBox"] = false;



$tdatashipment_modes[".isUseInlineAdd"] = true;

$tdatashipment_modes[".isUseInlineEdit"] = true;
$tdatashipment_modes[".isUseInlineJs"] = $tdatashipment_modes[".isUseInlineAdd"] || $tdatashipment_modes[".isUseInlineEdit"];

$tdatashipment_modes[".allSearchFields"] = array();

$tdatashipment_modes[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatashipment_modes[".allSearchFields"]))
{
	$tdatashipment_modes[".allSearchFields"][] = "id";	
}
$tdatashipment_modes[".globSearchFields"][] = "name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("name", $tdatashipment_modes[".allSearchFields"]))
{
	$tdatashipment_modes[".allSearchFields"][] = "name";	
}


$tdatashipment_modes[".googleLikeFields"][] = "id";
$tdatashipment_modes[".googleLikeFields"][] = "name";



$tdatashipment_modes[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatashipment_modes[".allSearchFields"])) 
{
	$tdatashipment_modes[".allSearchFields"][] = "id";	
}
$tdatashipment_modes[".advSearchFields"][] = "name";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("name", $tdatashipment_modes[".allSearchFields"])) 
{
	$tdatashipment_modes[".allSearchFields"][] = "name";	
}

$tdatashipment_modes[".isTableType"] = "list";


	

$tdatashipment_modes[".isDisplayLoading"] = true;

$tdatashipment_modes[".isResizeColumns"] = false;





$tdatashipment_modes[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatashipment_modes[".strOrderBy"] = $gstrOrderBy;
	
$tdatashipment_modes[".orderindexes"] = array();

$tdatashipment_modes[".sqlHead"] = "SELECT id,   name";
$tdatashipment_modes[".sqlFrom"] = "FROM shipment_modes";
$tdatashipment_modes[".sqlWhereExpr"] = "";
$tdatashipment_modes[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatashipment_modes[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatashipment_modes[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatashipment_modes[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "shipment_modes";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatashipment_modes["id"]=$fdata;
//	name
	$fdata = array();
	$fdata["strName"] = "name";
	$fdata["ownerTable"] = "shipment_modes";
		$fdata["Label"]="Name"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "name";
	
		$fdata["FullName"]= "name";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=100";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatashipment_modes["name"]=$fdata;

	
$tables_data["shipment_modes"]=&$tdatashipment_modes;
$field_labels["shipment_modes"] = &$fieldLabelsshipment_modes;
$fieldToolTips["shipment_modes"] = &$fieldToolTipsshipment_modes;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["shipment_modes"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["shipment_modes"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto460=array();
$proto460["m_strHead"] = "SELECT";
$proto460["m_strFieldList"] = "id,   name";
$proto460["m_strFrom"] = "FROM shipment_modes";
$proto460["m_strWhere"] = "";
$proto460["m_strOrderBy"] = "";
$proto460["m_strTail"] = "";
$proto461=array();
$proto461["m_sql"] = "";
$proto461["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto461["m_column"]=$obj;
$proto461["m_contained"] = array();
$proto461["m_strCase"] = "";
$proto461["m_havingmode"] = "0";
$proto461["m_inBrackets"] = "0";
$proto461["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto461);

$proto460["m_where"] = $obj;
$proto463=array();
$proto463["m_sql"] = "";
$proto463["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto463["m_column"]=$obj;
$proto463["m_contained"] = array();
$proto463["m_strCase"] = "";
$proto463["m_havingmode"] = "0";
$proto463["m_inBrackets"] = "0";
$proto463["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto463);

$proto460["m_having"] = $obj;
$proto460["m_fieldlist"] = array();
						$proto465=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "shipment_modes"
));

$proto465["m_expr"]=$obj;
$proto465["m_alias"] = "";
$obj = new SQLFieldListItem($proto465);

$proto460["m_fieldlist"][]=$obj;
						$proto467=array();
			$obj = new SQLField(array(
	"m_strName" => "name",
	"m_strTable" => "shipment_modes"
));

$proto467["m_expr"]=$obj;
$proto467["m_alias"] = "";
$obj = new SQLFieldListItem($proto467);

$proto460["m_fieldlist"][]=$obj;
$proto460["m_fromlist"] = array();
												$proto469=array();
$proto469["m_link"] = "SQLL_MAIN";
			$proto470=array();
$proto470["m_strName"] = "shipment_modes";
$proto470["m_columns"] = array();
$proto470["m_columns"][] = "id";
$proto470["m_columns"][] = "name";
$obj = new SQLTable($proto470);

$proto469["m_table"] = $obj;
$proto469["m_alias"] = "";
$proto471=array();
$proto471["m_sql"] = "";
$proto471["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto471["m_column"]=$obj;
$proto471["m_contained"] = array();
$proto471["m_strCase"] = "";
$proto471["m_havingmode"] = "0";
$proto471["m_inBrackets"] = "0";
$proto471["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto471);

$proto469["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto469);

$proto460["m_fromlist"][]=$obj;
$proto460["m_groupby"] = array();
$proto460["m_orderby"] = array();
$obj = new SQLQuery($proto460);

$queryData_shipment_modes = $obj;
$tdatashipment_modes[".sqlquery"] = $queryData_shipment_modes;

$tableEvents["shipment_modes"] = new eventsBase;

?>
